/*   **********************************************************************  **
 **   Copyright notice                                                       **
 **                                                                          **
 **   (c) 2009, Around(J2)ME				                                 **
 **   All rights reserved.                                                   **
 **                                                                          **
 **   This program and the accompanying materials are made available under   **
 **   the terms of the New BSD License which accompanies this    			 **
 **   distribution.											                 **
 **   A copy is found in the textfile LICENSE.txt							 **
 **                                                                          **
 **   This copyright notice MUST APPEAR in all copies of the file!           **
 **                                                                          **
 **   Main developers:                                                       **
 **     Juri Strumpflohner		http://blog.js-development.com	             **
 **		Matthias Braunhofer		http://matthias.jimdo.com                    **
 **                                                                          **
 **  **********************************************************************  */

package org.aroundme.unitTools;

import junit.framework.TestCase;

import org.aroundme.utility.HibernateUtil;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;

public class TestFixture extends TestCase {
	protected XmlBeanFactory springFactory;
	protected XMLUnitTestUtils xmlTestUtils;

	protected TestFixture() {
		HibernateUtil.setTestFactory();
		FileSystemResource res = new FileSystemResource("war/WEB-INF/server-servlet.xml");
		springFactory = new XmlBeanFactory(res);
	}
	
	@Override
	protected void setUp() throws Exception {
		super.setUp();
		xmlTestUtils = new XMLUnitTestUtils();
	}
	
	@Override
	protected void tearDown() throws Exception {
		super.tearDown();
		xmlTestUtils = null;
	}
}
